#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include<math.h>
int jlw11[20000][3]={0};
int jlw21[20000][3]={0};
int main(int argc, char *argv[])
{
    char ch;
    int win11=0;
    int win21=0;
    int js21=0;
    int js11=0;
    int j21=0;
    int j11=0;
    int los11=0;
    int los21=0;
    while((ch=getchar())!='E'){
        if(ch=='\n')continue;
        js21++;
        js11++;
        if(ch=='W'){
            win11++;
            win21++; 
        }
         if(ch=='L'){
            los11++;
            los21++;
        }
        if((win21>=21||los21>=21)&&abs(win21-los21)>=2){
            j21++;
            jlw21[j21][1]=win21;
            jlw21[j21][2]=los21;
            win21=0;
            los21=0;
            js21=0;
        }
         if((win11>=11||los11>=11)&&abs(win11-los11)>=2){
            j11++;
            jlw11[j11][1]=win11;
            jlw11[j11][2]=los11;
            win11=0;
            los11=0;
            js11=0;
        }
    }
    if(js21!=0){
        j21++;
        jlw21[j21][1]=win21;
        jlw21[j21][2]=los21;
    }
    if(js11!=0){
        j11++;
        jlw11[j11][1]=win11;
        jlw11[j11][2]=los11;
    }
    if(js11==0){
        j11++;
    }
    if(js21==0){
        j21++;
    }
    for(int i=1;i<=j11;i++){
        printf("%d:%d\n",jlw11[i][1],jlw11[i][2]);
    }
    printf("\n");
    for(int i=1;i<=j21;i++){
        printf("%d:%d\n",jlw21[i][1],jlw21[i][2]);
    }
  return 0;
}